const host = window.location.host;
const test =
    Uts.contain(host, "rj-info.com|www.gray") || host.indexOf("localhost") > -1
        ? true
        : false;
export default {

    //采购管理地址
    purchaseTab: `purcharseManger`,

    //竞价管理地址
    bidTab: `bid`,

    //订单管理地址
    orderTab: `purcharseManger`,

    //结算管理地址
    accountTab: `account`,

    //商品管理地址(已弃用)
    productTab: ``,

    //品牌管理地址
    brandTab: `purcharseManger`,

    //供应商管理地址
    supplierTab: `supply`,

    //出入库管理地址
    warehouseTab: `windex`,

    //成员管理地址
    memberTab: ``,

    //统计管理地址
    statisticTab: `statistic`,

    //采购管控地址
    monitorTab: `monitor`,

    //个人中心地址
    personalTab: `personal`,

    //废弃物管理
    garbageTab: `garbageApplyList`,

    //公告
    /*information: "../purchaser/index.html#information",

    //公告详情
    infodetails: function(id, date) {
        return `../purchaser/index.html#infodetails/${id}/${date}`;
    },

    //优惠频道
    promotionChannel: `../purchaser/index.html#promotionChannel`,

    //优惠券列表
    cardpack: `../purchaser_Manager/index.html#cardpack`,

    //管理经费卡
    cardList: `../purchaser_Manager/index.html#cardlist`,

    //管理地址
    addressList: `../purchaser_Manager/index.html#list`,

    //运费规则
    helpdetails: `../purchaser/index.html#helpdetails/d6367ca4-151d-493e-8368-5fd6760e4f2c/2019-05-06`,


    //订单
    order: `../purchaser_Manager/index.html#order/1000`,

    //我的关注
    interest: `../purchaser_Manager/index.html#interest`,

    //采购人首页
    purchaserManager: `../purchaser_Manager/index.html#`,

    //登录
    login: `../purchaser/index.html#login`,

    //HMS登录
    hmsLogin: `../../../hms/hms/index.html`,

    //订单列表
    onlineOrderList: function(orderId) {
        return `../purchaser_Manager/index.html#purcharsedetail?id=${orderId}`;
    },

    //管理中心
    purserCenter() {
        if (host.indexOf("localhost") > -1) {
            return "https://hms.test4.rj-info.com/index.html#control";
        } else if (host.indexOf("test4.rj-info.com") > -1) {
            return "https://hms.test4.rj-info.com/index.html#control";
        } else if (host.indexOf("rjmart.rj-info.com") > -1) {
            return "https://hms.rjmart.rj-info.com#control";
        } else if (host.indexOf("www.gray") > -1) {
            return "https://hms.gray.rjmart.cn#control";
        } else {
            return "https://hms.rjmart.cn/index.html#control";
        }
    },

    //待发货
    order1: "../purchaser_Manager/index.html#order/1000",

    //课题组订单：
    order2: "../purchaser_Manager/index.html#order",

    //待结算
    daijiesuan: "../purchaser_Manager/index.html#presettle",

    //我收藏的宝贝
    store: "../purchaser_Manager/index.html#interest",

    footerUrlList: [
        [
            "#",
            "../purchaser/index.html#bidlist",
            "../purchaser/index.html#promotionChannel",
            "../purchaser_Manager/index.html#"
        ],
        [
            "../purchaser/index.html#cooperation",
            "../purchaser/index.html#helpdetails/9d135c75-7873-4a79-a339-3844db4d890c/2018-04-17",
            "../purchaser/index.html#help"
        ],
        ["../purchaser/index.html#providerfirst?key=login", "###","../purchaser/index.html#login","../purchaser/index.html#supphelp" ],   //
        [
            "http://www.rj-info.com/",
            "http://www.rj-info.com/",
            "http://www.rj-info.com/",
            "http://www.rj-info.com/",
            "https://www.lagou.com/gongsi/j226552.html"
        ]
    ],

    //

    productFee: `../purchaser/index.html#helpdetails/d6367ca4-151d-493e-8368-5fd6760e4f2c/2019-05-06`,

    groupBuying(groupbuyingId, productId) {
        return `../purchaser/index.html#groupdetails/${groupbuyingId}/${productId}`;
    },

    productFee: `../purchaser/index.html#helpdetails/d6367ca4-151d-493e-8368-5fd6760e4f2c/2019-05-06`,

    //忘记密码
    findpassword: "../purchaser/index.html#findpassword",

    //供应商注册
    providerfirst: "../purchaser/index.html#providerfirst?key=login",

    //供应商首页
    supplierhp: "../supplier/index.html",

    //实价协议
    helpForTurePrice:
        "../purchaser/index.html#helpdetails/cfe5fc82-d6eb-4462-8767-3c2734171e9e/2019-01-22",

    //团购订单填写页
    groupBuyingOrder(productCount, productId, groupbuyingId) {
        return `../purchaser/index.html#cartapply?num=${productCount}&poid=${productId}&groupId=${groupbuyingId}`;
    },


    //帮助中心
    helpCenter:`../purchaser/index.html#help`*/

};
